package com.geovis.emergency.spd.entity.pc.pojo.dto;

import com.geovis.emergency.spd.entity.pc.entity.PcDrillDisasterEvent;
import com.geovis.emergency.spd.entity.pc.pojo.vo.PcDrillDutyOrgVO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import java.util.List;

/**
 * <p>
 * 应急预案指挥模块-演练灾害表DTO
 * </p>
 *
 * @author Lonsho
 * @version 1.0
 * @date 2022/6/10
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="PcDrillDisasterSaveDTO对象", description="应急预案指挥模块-演练灾害表DTO")
public class PcDrillDisasterSubmitDTO {

    @ApiModelProperty(value = "演练id")
    @NotBlank(message = "演练id不能为空")
    private String pcDrillId;

    @ApiModelProperty(value = "灾害事件列表")
    @NotEmpty(message = "灾害事件列表不能为空")
    private List<@Valid PcDrillDisasterEvent> disasterEventList;

    @ApiModelProperty("组织架构与人员")
    @NotEmpty(message = "组织架构与人员不能为空")
    private List<PcDrillDutyOrgVO> dutyOrgList;
}
